using System.Data.Entity.ModelConfiguration;
using ExampleWebApplication.Entities;

namespace ExampleWebApplication.Infraestruture.EntityFramework.EntityTypeConfigurations
{
    public class EmployeeTerritoryConfiguration : EntityTypeConfiguration<EmployeeTerritory>
    {
        public EmployeeTerritoryConfiguration()
        {
            HasKey(entity => new { entity.EmployeeID, entity.TerritoryID });
        }
    }
}